package com.kimastrom.theGame.View;

import android.graphics.PointF;

public class Camera{ 
    private float mScaleX;
    private float mScaleY;

    public Camera(int aScreenWidth ,int aScreenHeight) {
    	mScaleX = (float)aScreenWidth / 20;
    	mScaleY = (float)aScreenHeight / 33;
    }
    
    public PointF GetViewPos(PointF aModelPos)
    {
        return new PointF(aModelPos.x * mScaleX, aModelPos.y * mScaleY);
    }
    
    
    public PointF GetPlayerViewPos(PointF aModelPos)
    {
        return new PointF(aModelPos.x * mScaleX, aModelPos.y * mScaleY);
    }
    
    public float getViewX(float aModelXPosition) {
        return aModelXPosition * mScaleX;
    }
    
    public float getViewY(float aModelYPosition) {
        return aModelYPosition * mScaleY;
    }
    
}
